package com.chapter13;

/**
 * 构建者模式的好处是使得构造代码与表示代码分离，由于建造者隐藏了该产品是如何组装的，
 * 所以如果想要改变一个产品的内部表示，只需要在定义一个具体的建造者就行了
 */
public class Test implements Cloneable{

    public static void main(String[] args) {

        final ConcretBuilder2 concretBuilder1 = new ConcretBuilder2();
        final Director director = new Director();
        director.Construct(concretBuilder1);
        final Product product = concretBuilder1.GetResult();
        product.show();
    }
}
